package kr.hkit.powerjava.chapter09;

public class Plane {
	private String product;
	private String model;
	private int people;
	public static int planes;
	
	public Plane() {
		Plane.planes++;
	}
	
	public Plane(String product, String model, int people, int Planes) {
		this.product = product;
		this.model = model;
		this.people = people;
		this.planes = Plane.planes;
	}

	public String getProduct() {
		return product;
	}
	public void setProduct(String product) {
		this.product = product;
	}
	
	public static int getPlanes(){
		return planes;
	}
	
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public int getPeople() {
		return people;
	}
	public void setPeople(int people) {
		this.people = people;
	}

	@Override
	public String toString() {
		return "Plane [product=" + product + ", model=" + model + ", people="
				+ people + " planes=" + planes + "]";
	}
	
}
